package com.chen.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 点赞
 * @author chen
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("likes")
@ApiModel(value = "点赞",description = "")
public class Likes {

    @ApiModelProperty("主键id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("是否点赞")
    private int flag;

    @ApiModelProperty("作者")
    private String author;

    @ApiModelProperty("点赞人")
    private String liker;

    @ApiModelProperty("关联id")
    private int foreignId;

    private String articleName;

    private Date time;




}
